package com.typhoon.spring_boot_demo1.utils;

/**
 * 参数校验工具类
 */
public class ParameterChecker {

    public static  void checkNotNull(Object obj,String field) {
        if(null == obj) {
            throw new IllegalArgumentException(field +"cannot be null");
        }
    }

}
